package com.bailian.snails.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gaoxu
 * date: Created on 2021/6/18 下午3:31
 */
@RestController
public class DemoController {

    @Value("${common.name}")
    private String commonName;

    @Value("${common.age}")
    private String commonAge;

    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String getProperties() {
        return "commoName: " + commonName + ",commonAge: " + commonAge;
    }

}
